import 'package:finance_app/generated/json/base/json_convert_content.dart';
import 'package:finance_app/generated/json/base/json_field.dart';
import 'package:finance_app/src/entities/business_contact_entity.dart';

class CreditNoteEntity with JsonConvert<CreditNoteEntity> {
  @JSONField(name: "data_type")
  String dataType;
  int id;
  @JSONField(name: "company_id")
  int companyId;
  @JSONField(name: "contact_id")
  int contactId;
  @JSONField(name: "invoice_id")
  int invoiceId;
  String number;
  @JSONField(name: "issued_at")
  String issuedAt;
  @JSONField(name: "currency_code")
  String currencyCode;
  num subtotal;
  @JSONField(name: "is_tax_inclusive")
  int isTaxInclusive;
  @JSONField(name: "tax_id")
  dynamic taxId;
  @JSONField(name: "tax_amount")
  int taxAmount;
  num total;
  dynamic notes;
  @JSONField(name: "created_at")
  String createdAt;
  @JSONField(name: "updated_at")
  String updatedAt;
  BusinessContactEntity contact;
}
